package com.tydic.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tydic.product.domain.CarNumber;

import java.util.List;

public interface ICarNumberService {
    List<CarNumber> findByBusinessIdAndBusinessTypeAndCreateDate(String businessId, String businessType, String createDate);

    List<CarNumber> findByBusinessIdAndBusinessType(String businessId, String businessType);

    CarNumber findByCarNumberAndCreateDate(String carNumber, String createDate);

    CarNumber findByBusinessIdAndBusinessTypeAndCarNumberAndCreateDate(String businessId, String businessType, String carNumber, String createDate);

    Page<CarNumber> findByBusinessIdAndBusinessType(Page<CarNumber> page, String businessId, String businessType);

    Page<CarNumber> findByCarNumber(Page<CarNumber> page, String carNumber);

    int deleteByBusinessIdAndBusinessType(String businessId, String businessType);

    void save(String businessId, String businessType, String carNumber);

    void save(String businessId, String businessType, List<String> carNumbers);

    Page<CarNumber> page(int pageNo, int pageSize, String businessId, String businessType);

    Page<CarNumber> page(int pageNo, int pageSize, String carNumber);

    Page<CarNumber> page(int pageNo, int pageSize);

    List<CarNumber> list(String businessId, String businessType, String createDate);

    List<CarNumber> list(String businessId, String businessType);

    CarNumber get(String carNumber, String createDate);

    void clear(String businessId, String businessType);

    void updateAllow(String businessId, String businessType);
}
